
package cn.ming.wfchat.app.me.activity;

import android.content.Intent;
import android.widget.Button;

import butterknife.BindView;
import butterknife.OnClick;
import cn.ming.wfchat.R;
import cn.ming.wfchat.app.me.activity.model.AssetsBean;
import cn.ming.wfchat.kit.WfcBaseActivity;
import cn.ming.wfchat.kit.widget.OptionItemView;

/**
 * @author luoming
 * created at 2020/8/11 3:04 PM
 * 我的资产详情
 */
public class MyAssetsDetailsActivity extends WfcBaseActivity {


    @BindView(R.id.ll_zonge)
    OptionItemView llZonge;
    @BindView(R.id.ll_keyong)
    OptionItemView llKeyong;
    @BindView(R.id.ll_dongjie)
    OptionItemView llDongjie;
    @BindView(R.id.ll_shizhi)
    OptionItemView llShizhi;
    @BindView(R.id.btn_chongzhi)
    Button btnChongzhi;
    @BindView(R.id.btn_tixian)
    Button btnTixian;
    AssetsBean.ListBean bean;

    @Override
    protected int contentLayout() {
        return R.layout.my_assets_details_activity;
    }

    @Override
    protected void afterViews() {
        super.afterViews();
        initDate();
    }

    void initDate() {
        setTitle("USDT");
        bean = (AssetsBean.ListBean) getIntent().getSerializableExtra("assets");
        if (bean != null) {
//            llZonge.setDesc(bean.getMainBalance());
//            llDongjie.setDesc(bean.get());
//            llKeyong.setDesc(bean.getBalance());
//            llShizhi.setDesc("￥" + bean.getValuationBanlance());
//            setTitle(bean.getCoinType());
        }

    }

    @OnClick(R.id.btn_chongzhi)
    void setBtnChongzhi() {
        Intent intent = new Intent(this, MyAssetsTopUpActivity.class);
        startActivity(intent);
    }

    @OnClick(R.id.btn_tixian)
    void setBtnTixian() {
        Intent intent = new Intent(this, MyAssetsWithdrawalActivity.class);
       // intent.putExtra("coinType",bean.getType());
        startActivity(intent);
        finish();
    }
}
